Merge the deduplication and dead-code removal pass
Consolidates duplicated logic behind shared implementations — paginated grid tabs, focus chrome, cached remote stores, sheet selection columns, the server artifact store and a test fixture layer — and removes code that had become unreachable. Net reduction of about 5,500 lines with no behaviour change. Where a fix had landed separately in code that moved into a shared helper, the fix was re-applied inside the helper rather than left behind in the copy that went away.
This commit is contained in:
@@ -136,6 +136,21 @@ void main() {
|
||||
}
|
||||
});
|
||||
|
||||
test('repeats the restore pass in place for doubled Anime4K modes', () async {
|
||||
final shaders = await ShaderAssetLoader.getAnime4KShaders(
|
||||
const Anime4KConfig(quality: Anime4KQuality.fast, mode: Anime4KMode.modeBB),
|
||||
);
|
||||
|
||||
expect(shaders.map(path.basename).toList(), [
|
||||
'Anime4K_Clamp_Highlights.glsl',
|
||||
'Anime4K_Restore_CNN_M.glsl',
|
||||
'Anime4K_Restore_CNN_M.glsl',
|
||||
'Anime4K_Upscale_CNN_x2_M.glsl',
|
||||
'Anime4K_AutoDownscalePre_x2.glsl',
|
||||
]);
|
||||
expect(shaders[1], shaders[2]);
|
||||
});
|
||||
|
||||
test('nested and non-GLSL names are rejected without touching matching files', () async {
|
||||
final customDirectory = Directory(path.join(supportDirectory.path, 'custom_shaders'))..createSync(recursive: true);
|
||||
final nested = File(path.join(customDirectory.path, 'subdir', 'name.glsl'))
|
||||
|
||||
Reference in New Issue
Block a user