Skip to content

Commit bc7cba2

Browse files
authored
Merge pull request #6 from yuki2006/master
ARCでは動作しないメソッドの除去
2 parents ba29745 + 6c048f7 commit bc7cba2

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

unity/NativeDialogPlugin/Assets/Plugins/iOS/UNDialogManager.mm

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -64,25 +64,14 @@ + (UNDialogManager*) sharedManager {
6464

6565
- (id) init {
6666
alerts = [NSMutableDictionary dictionary];
67-
[alerts retain];
68-
6967
return [super init];
7068
}
7169

72-
- (void) dealloc {
73-
[decideLabel release];
74-
[cancelLabel release];
75-
[closeLabel release];
76-
[alerts release];
77-
[super dealloc];
78-
}
7970

8071
- (int) showSelectDialog:(NSString *)msg {
8172
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:msg delegate:self cancelButtonTitle:cancelLabel otherButtonTitles:decideLabel, nil];
8273
alert.tag = ++_id;
8374
[alert show];
84-
[alert autorelease];
85-
8675
[alerts setObject:alert forKey:[NSNumber numberWithInt:_id]];
8776
return _id;
8877
}
@@ -91,8 +80,6 @@ - (int) showSelectDialog:(NSString *)title message:(NSString*)msg {
9180
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title message:msg delegate:self cancelButtonTitle:cancelLabel otherButtonTitles:decideLabel, nil];
9281
alert.tag = ++_id;
9382
[alert show];
94-
[alert autorelease];
95-
9683
[alerts setObject:alert forKey:[NSNumber numberWithInt:_id]];
9784
return _id;
9885
}
@@ -101,8 +88,6 @@ - (int) showSubmitDialog:(NSString *)msg {
10188
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:msg delegate:self cancelButtonTitle:nil otherButtonTitles:closeLabel, nil];
10289
alert.tag = ++_id;
10390
[alert show];
104-
[alert autorelease];
105-
10691
[alerts setObject:alert forKey:[NSNumber numberWithInt:_id]];
10792
return _id;
10893
}
@@ -111,8 +96,6 @@ - (int) showSubmitDialog:(NSString *)title message:(NSString*)msg {
11196
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title message:msg delegate:self cancelButtonTitle:nil otherButtonTitles:closeLabel, nil];
11297
alert.tag = ++_id;
11398
[alert show];
114-
[alert autorelease];
115-
11699
[alerts setObject:alert forKey:[NSNumber numberWithInt:_id]];
117100
return _id;
118101
}
@@ -124,17 +107,9 @@ - (void) dissmissDialog:(int)theID {
124107
}
125108

126109
- (void) setLabelTitleWithDecide:(NSString*)decide cancel:(NSString*)cancel close:(NSString*) close {
127-
[decideLabel release];
128-
[cancelLabel release];
129-
[closeLabel release];
130-
131110
decideLabel = [NSString stringWithString:decide];
132111
cancelLabel = [NSString stringWithString:cancel];
133112
closeLabel = [NSString stringWithString:close];
134-
135-
[decideLabel retain];
136-
[cancelLabel retain];
137-
[closeLabel retain];
138113
}
139114

140115
// delegate

0 commit comments

Comments
 (0)