Skip to content

Commit c7ed1b3

Browse files
committed
Merge branch 'develop' of https://github.com/subethaedit/SubEthaEdit into feature/1-project-context
2 parents 0a67bf0 + 686667b commit c7ed1b3

39 files changed

Lines changed: 292 additions & 554 deletions

Artwork-Sources/Symbols.afdesign

8.85 KB
Binary file not shown.

SubEthaEdit-Mac/Source/DocumentModeManager.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,6 @@ - (instancetype)init {
184184
return self;
185185
}
186186

187-
- (void)dealloc {
188-
self.changedScopeNameDict = nil;
189-
self.allPathExtensions = nil;
190-
}
191-
192187
#pragma mark - Directories
193188

194189
#define BUNDLE_MODE_FOLDER_NAME @"Modes"

SubEthaEdit-Mac/Source/DocumentProxyWindowController.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ - (instancetype)initWithSession:(TCMMMSession *)aSession {
7979
return self;
8080
}
8181

82-
- (void)dealloc {
83-
[[self window] setDelegate:nil];
84-
}
85-
8682
- (void)update {
8783
TCMMMSessionClientState state=[[(PlainTextDocument *)[self document] session] clientState];
8884
if (state == TCMMMSessionClientJoiningState) {

SubEthaEdit-Mac/Source/FoldableTextStorage.h

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,7 @@ extern NSString * const TextStorageHasMixedLineEndingsDidChange;
2323
extern NSString * const BlockeditAttributeName ;
2424
extern NSString * const BlockeditAttributeValue;
2525

26-
@interface FoldableTextStorage : AbstractFoldingTextStorage {
27-
FullTextStorage *I_fullTextStorage;
28-
NSMutableArray *I_sortedFoldedTextAttachments;
29-
NSMutableAttributedString *I_internalAttributedString;
30-
31-
int I_editingCount;
32-
33-
struct {
34-
BOOL hasBlockeditRanges;
35-
BOOL isBlockediting;
36-
BOOL didBlockedit;
37-
NSRange didBlockeditRange;
38-
NSRange didBlockeditLineRange;
39-
} I_blockedit;
40-
41-
42-
struct {
43-
int length;
44-
int characterOffset;
45-
int startLine;
46-
int endLine;
47-
} I_scriptingProperties;
48-
49-
}
26+
@interface FoldableTextStorage : AbstractFoldingTextStorage
5027

5128
- (NSRange)foldedRangeForFullRange:(NSRange)inRange;
5229
- (NSRange)foldedRangeForFullRange:(NSRange)inRange expandIfFolded:(BOOL)aFlag;
@@ -73,7 +50,6 @@ extern NSString * const BlockeditAttributeValue;
7350
- (void)foldAccordingToDataRepresentation:(NSData *)aData;
7451
- (NSData *)dataRepresentationOfFoldedRangesWithMaxDepth:(int)aMaxDepth;
7552

76-
7753
#pragma mark line numbers
7854
- (int)lineNumberForLocation:(unsigned)location;
7955
- (NSString *)positionStringForRange:(NSRange)aRange;
@@ -93,7 +69,6 @@ extern NSString * const BlockeditAttributeValue;
9369

9470
- (void)stopBlockedit;
9571

96-
9772
#pragma mark debug output
9873
- (NSMutableAttributedString *)attributedStringOfFolding:(FoldedTextAttachment *)inAttachment;
9974
- (NSString *)foldedStringRepresentationOfRange:(NSRange)inRange foldings:(NSArray *)inFoldings level:(int)inLevel;
@@ -107,8 +82,6 @@ extern NSString * const BlockeditAttributeValue;
10782
- (NSStringEncoding)encoding;
10883
- (void)setEncoding:(NSStringEncoding)anEncoding;
10984
- (NSArray *)selectionOperationsForRangesUnconvertableToEncoding:(NSStringEncoding)encoding;
110-
111-
11285
@end
11386

11487
@protocol FoldableTextStorageDelegate
@@ -130,8 +103,6 @@ extern NSString * const BlockeditAttributeValue;
130103
#pragma mark -
131104

132105
@interface FoldableTextStorage (TextStorageScriptingAdditions)
133-
134-
135106
- (NSRange)rangeRepresentation;
136107
- (NSNumber *)scriptedLength;
137108
- (NSNumber *)scriptedStartCharacterIndex;
@@ -145,7 +116,4 @@ extern NSString * const BlockeditAttributeValue;
145116
//- (id)insertionPoints;
146117
//- (NSArray *)scriptedCharacters;
147118
//- (NSArray *)scriptedLines;
148-
149119
@end
150-
151-
//#endif

0 commit comments

Comments
 (0)