Browse Source

Remove unused structure member handler factory

CPKreuz 11 months ago
parent
commit
e213476c88

+ 0 - 10
src/PixiEditor/Helpers/IFolderHandlerFactory.cs

@@ -1,10 +0,0 @@
-using PixiEditor.Models.DocumentModels;
-using PixiEditor.Models.Handlers;
-
-namespace PixiEditor.Helpers;
-
-internal interface IFolderHandlerFactory
-{
-    public IDocument Document { get; }
-    public IFolderHandler CreateFolderHandler(DocumentInternalParts helper, Guid infoGuidValue);
-}

+ 0 - 10
src/PixiEditor/Helpers/ILayerHandlerFactory.cs

@@ -1,10 +0,0 @@
-using PixiEditor.Models.DocumentModels;
-using PixiEditor.Models.Handlers;
-
-namespace PixiEditor.Helpers;
-
-internal interface ILayerHandlerFactory
-{
-    public IDocument Document { get; }
-    public ILayerHandler CreateLayerHandler(DocumentInternalParts helper, Guid infoGuidValue);
-}

+ 0 - 2
src/PixiEditor/Models/Handlers/IDocument.cs

@@ -31,8 +31,6 @@ internal interface IDocument : IHandler
     public bool AllChangesSaved { get; }
     public string CoordinatesString { get; set; }
     public IReadOnlyCollection<IStructureMemberHandler> SoftSelectedStructureMembers { get; }
-    //public ILayerHandlerFactory LayerHandlerFactory { get; }
-    //public IFolderHandlerFactory FolderHandlerFactory { get; }
     public ITransformHandler TransformHandler { get; }
     public bool Busy { get; set; }
     public ILineOverlayHandler LineToolOverlayHandler { get; }

+ 0 - 22
src/PixiEditor/ViewModels/Document/FolderHandlerFactory.cs

@@ -1,22 +0,0 @@
-// using PixiEditor.Helpers;
-// using PixiEditor.Models.DocumentModels;
-// using PixiEditor.Models.Handlers;
-// using PixiEditor.ViewModels.Document.Nodes;
-//
-// namespace PixiEditor.ViewModels.Document;
-//
-// internal class FolderHandlerFactory : IFolderHandlerFactory
-// {
-//     public DocumentViewModel Document { get; }
-//     IDocument IFolderHandlerFactory.Document => Document;
-//
-//     public FolderHandlerFactory(DocumentViewModel document)
-//     {
-//         Document = document;
-//     }
-//
-//     public IFolderHandler CreateFolderHandler(DocumentInternalParts helper, Guid infoGuidValue)
-//     {
-//         return new FolderNodeViewModel(Document, helper, infoGuidValue);
-//     }
-// }

+ 0 - 22
src/PixiEditor/ViewModels/Document/LayerHandlerFactory.cs

@@ -1,22 +0,0 @@
-// using PixiEditor.Helpers;
-// using PixiEditor.Models.DocumentModels;
-// using PixiEditor.Models.Handlers;
-// using PixiEditor.ViewModels.Document.Nodes;
-//
-// namespace PixiEditor.ViewModels.Document;
-//
-// internal class LayerHandlerFactory : ILayerHandlerFactory
-// {
-//     public DocumentViewModel Document { get; }
-//     IDocument ILayerHandlerFactory.Document => Document;
-//
-//     public LayerHandlerFactory(DocumentViewModel document)
-//     {
-//         Document = document;
-//     }
-//
-//     public ILayerHandler CreateLayerHandler(DocumentInternalParts helper, Guid infoGuidValue)
-//     {
-//         return new ImageLayerNodeViewModel(Document, helper, infoGuidValue);
-//     }
-// }