Skip to content

Commit

Permalink
Remove unused getSelfLocation (#581)
Browse files Browse the repository at this point in the history
At the very early days of the mac port, we thought we needed
getSelfLocation in SurgeStorage, but then realized we didn't
so took out that code path. But we didn't take out the implementation.
Do so.
  • Loading branch information
baconpaul authored Feb 11, 2019
1 parent fcb36a1 commit b273f9e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/common/SurgeStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,6 @@ double dsamplerate_os, dsamplerate_os_inv;

using namespace std;

#if MAC
#include <CoreFoundation/CoreFoundation.h>
string getSelfLocation()
{
char path[PATH_MAX];
// TODO: use a build-provided symbol
CFStringRef selfName = CFSTR("com.vemberaudio.plugins.surge");
CFBundleRef mainBundle = CFBundleGetBundleWithIdentifier(selfName);
CFURLRef resourcesURL = CFBundleCopyBundleURL(mainBundle);
CFStringRef str = CFURLCopyFileSystemPath(resourcesURL, kCFURLPOSIXPathStyle);
CFRelease(resourcesURL);
CFStringGetCString(str, path, FILENAME_MAX, kCFStringEncodingASCII);
CFRelease(str);
string out(path);
return out;
}
#endif

SurgeStorage::SurgeStorage()
{
_patch.reset(new SurgePatch(this));
Expand Down

0 comments on commit b273f9e

Please sign in to comment.