mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
Remove unused method
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user