Skip to content

Commit 737bcb9

Browse files
committed
Removes some upgrade code from 0.9.71. It's unlikely that anyone will upgrade from such an old version and I'd like to clean the code up. Not having this code won't wreck anything for those who do.
1 parent a37418a commit 737bcb9

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

Packages/Ink/Editor/Core/Ink Library/InkLibrary.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -116,21 +116,6 @@ void OnValidate () {
116116
Validate();
117117
};
118118
}
119-
// After recompile, the data associated with the object is fetched (or whatever happens to it) by this point.
120-
void OnEnable () {
121-
// Deletes the persistent version of this asset that we used to use prior to 0.9.71
122-
if(!Application.isPlaying && EditorUtility.IsPersistent(this)) {
123-
var path = AssetDatabase.GetAssetPath(this);
124-
if(!string.IsNullOrEmpty(path)) {
125-
#if !UNITY_2020_1_OR_NEWER
126-
if(_instance == this) _instance = null;
127-
#endif
128-
AssetDatabase.DeleteAsset(path);
129-
AssetDatabase.Refresh();
130-
return;
131-
}
132-
}
133-
}
134119

135120
static void BuildLookupDictionary () {
136121
instance.inkLibraryDictionary.Clear();

Packages/Ink/Editor/Core/Ink Settings/InkSettings.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,18 +120,6 @@ void OnEnable () {
120120
filesToCompileAutomatically.RemoveAt(i);
121121
}
122122
}
123-
// Deletes the persistent version of this asset that we used to use prior to 0.9.71
124-
if(!Application.isPlaying && EditorUtility.IsPersistent(this)) {
125-
var path = AssetDatabase.GetAssetPath(this);
126-
if(!string.IsNullOrEmpty(path)) {
127-
#if !UNITY_2020_1_OR_NEWER
128-
if(_instance == this) _instance = null;
129-
#endif
130-
AssetDatabase.DeleteAsset(AssetDatabase.GetAssetPath(this));
131-
AssetDatabase.Refresh();
132-
return;
133-
}
134-
}
135123
}
136124
}
137125
}

0 commit comments

Comments
 (0)