Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove unused operator

  • Loading branch information...
commit 97ef1ea74d69ac1a6c6e114d7cd8bc7316fee354 1 parent 4d3f685
@scutdavy authored
Showing with 0 additions and 60 deletions.
  1. +0 −60 objc/Nu.m
View
60 objc/Nu.m
@@ -8224,40 +8224,6 @@ - (id) callWithArguments:(id)cdr context:(NSMutableDictionary *)context{
@end
-@interface Nu_cmethod_operator : NuOperator
-@end
-
-@implementation Nu_cmethod_operator
-- (id) callWithArguments:(id)cdr context:(NSMutableDictionary *)context{
- NSLog(@"The cmethod operator is deprecated. Please replace it with '+' in your code.");
- NuSymbolTable *symbolTable = [context objectForKey:SYMBOLS_KEY];
- NuClass *classWrapper = [context objectForKey:[symbolTable symbolWithString:@"_class"]];
- [classWrapper registerClass];
- Class classToExtend = [classWrapper wrappedClass];
- if (!classToExtend)
- [NSException raise:@"NuMisplacedDeclaration" format:@"class method declaration with no enclosing class declaration"];
- return help_add_method_to_class(classToExtend, cdr, context, YES);
-}
-
-@end
-
-@interface Nu_imethod_operator : NuOperator
-@end
-
-@implementation Nu_imethod_operator
-- (id) callWithArguments:(id)cdr context:(NSMutableDictionary *)context{
- NSLog(@"The imethod operator is deprecated. Please replace it with '-' in your code.");
- NuSymbolTable *symbolTable = [context objectForKey:SYMBOLS_KEY];
- NuClass *classWrapper = [context objectForKey:[symbolTable symbolWithString:@"_class"]];
- [classWrapper registerClass];
- Class classToExtend = [classWrapper wrappedClass];
- if (!classToExtend)
- [NSException raise:@"NuMisplacedDeclaration" format:@"instance method declaration with no enclosing class declaration"];
- return help_add_method_to_class(classToExtend, cdr, context, NO);
-}
-
-@end
-
@interface Nu_ivar_operator : NuOperator
@end
@@ -8289,28 +8255,6 @@ - (id) callWithArguments:(id)cdr context:(NSMutableDictionary *)context{
@end
-@interface Nu_ivars_operator : NuOperator
-@end
-
-@implementation Nu_ivars_operator
-- (id) callWithArguments:(id)cdr context:(NSMutableDictionary *)context{
- NSLog(@"The ivars operator is unnecessary. Please remove it from your source.");
- return [NSNull NU_null];
-}
-
-@end
-
-@interface Nu_ivar_accessors_operator : NuOperator
-@end
-
-@implementation Nu_ivar_accessors_operator
-- (id) callWithArguments:(id)cdr context:(NSMutableDictionary *)context{
- NSLog(@"The ivar-accessors operator is unnecessary. Please remove it from your source.");
- return [NSNull NU_null];
-}
-
-@end
-
@interface Nu_system_operator : NuOperator
@end
@@ -10329,11 +10273,7 @@ + (void) loadBuiltIns:(NuSymbolTable *) symbolTable{
install(@"sleep", Nu_sleep_operator);
install(@"class", Nu_class_operator);
- install(@"imethod", Nu_imethod_operator);
- install(@"cmethod", Nu_cmethod_operator);
install(@"ivar", Nu_ivar_operator);
- install(@"ivars", Nu_ivars_operator);
- install(@"ivar-accessors", Nu_ivar_accessors_operator);
install(@"call", Nu_call_operator);
install(@"send", Nu_send_operator);
Please sign in to comment.
Something went wrong with that request. Please try again.