Skip to content

Commit

Permalink
Style cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
colincornaby committed Jul 9, 2024
1 parent f82cf31 commit 5980b1f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ - (void)patcherCompleted:(nonnull PLSPatcher *)patcher didSelfPatch:(BOOL)selfPa
// intercepted by the application
}


- (void)observeValueForKeyPath:(NSString*)keyPath
ofObject:(id)object
change:(NSDictionary*)change
Expand Down
13 changes: 1 addition & 12 deletions Sources/Plasma/CoreLib/plFileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,8 @@ You can contact Cyan Worlds, Inc. by email [email protected]

ST::string plFileName::GetFileName() const
{
if(fName.ends_with("/"))
{
if (fName.ends_with("/"))
return plFileName(fName.before_last('/')).GetFileName();
}
ST_ssize_t end = fName.find_last('/');
if (end < 0)
end = fName.find_last('\\');
if (end < 0)
return fName;

return fName.substr(end + 1);
}

ST::string plFileName::GetFileExt() const
{
ST_ssize_t dot = fName.find_last('.');
Expand Down

0 comments on commit 5980b1f

Please sign in to comment.