diff --git a/src/MacVim/MMAppController.h b/src/MacVim/MMAppController.h index d1f29796ca..c7f2a5f7ef 100644 --- a/src/MacVim/MMAppController.h +++ b/src/MacVim/MMAppController.h @@ -52,8 +52,6 @@ - (void)removeItemFromPlugInMenu:(NSMenuItem *)item; #endif -- (void)setPreloadCacheSize:(int)size; - - (IBAction)newWindow:(id)sender; - (IBAction)newWindowAndActivate:(id)sender; - (IBAction)fileOpen:(id)sender; diff --git a/src/MacVim/MMAppController.m b/src/MacVim/MMAppController.m index e2361e6991..ff038867fc 100644 --- a/src/MacVim/MMAppController.m +++ b/src/MacVim/MMAppController.m @@ -858,26 +858,6 @@ fsEventCallback(ConstFSEventStreamRef streamRef, } #endif -- (void)setPreloadCacheSize:(int)size -{ - if (size < 0) return; - - int count = [cachedVimControllers count]; - - if (0 == size) { - // Disable quickstart - [self clearPreloadCacheWithCount:-1]; - [self stopWatchingVimDir]; - } else if (count > size) { - // Cache size decreased - [self clearPreloadCacheWithCount:count-size]; - } else if (count < size) { - // Cache size increased - [self scheduleVimControllerPreloadAfterDelay:1.0]; - [self startWatchingVimDir]; - } -} - - (IBAction)newWindow:(id)sender { // A cached controller requires no loading times and results in the new