[Bf-blender-cvs] [671b76098da] temp-gpencil-io: Cleanup: Remove unecessary file

Hans Goudey noreply at git.blender.org
Tue Mar 23 18:19:53 CET 2021


Commit: 671b76098da5180c7d5ac81e55b8a16392349216
Author: Hans Goudey
Date:   Tue Mar 23 13:19:48 2021 -0400
Branches: temp-gpencil-io
https://developer.blender.org/rB671b76098da5180c7d5ac81e55b8a16392349216

Cleanup: Remove unecessary file

===================================================================

M	source/blender/io/gpencil/CMakeLists.txt
D	source/blender/io/gpencil/intern/gpencil_io_export_base.cc
M	source/blender/io/gpencil/intern/gpencil_io_export_base.h

===================================================================

diff --git a/source/blender/io/gpencil/CMakeLists.txt b/source/blender/io/gpencil/CMakeLists.txt
index b760230a850..f394075cb9a 100644
--- a/source/blender/io/gpencil/CMakeLists.txt
+++ b/source/blender/io/gpencil/CMakeLists.txt
@@ -55,7 +55,6 @@ set(SRC
  intern/gpencil_io_import_svg.cc
 
  intern/gpencil_io_export_base.h
- intern/gpencil_io_export_base.cc
 )
 
 set(LIB
diff --git a/source/blender/io/gpencil/intern/gpencil_io_export_base.cc b/source/blender/io/gpencil/intern/gpencil_io_export_base.cc
deleted file mode 100644
index 97d3d265f01..00000000000
--- a/source/blender/io/gpencil/intern/gpencil_io_export_base.cc
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
-/*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * The Original Code is Copyright (C) 2020 Blender Foundation
- * All rights reserved.
- */
-
-/** \file
- * \ingroup bgpencil
- */
-#include <algorithm>
-#include <cctype>
-#include <iostream>
-#include <string>
-
-#include "BKE_context.h"
-#include "BKE_gpencil.h"
-#include "BKE_gpencil_geom.h"
-#include "BKE_layer.h"
-#include "BKE_main.h"
-#include "BKE_material.h"
-
-#include "BLI_blenlib.h"
-#include "BLI_math.h"
-#include "BLI_utildefines.h"
-
-#include "DNA_gpencil_types.h"
-#include "DNA_material_types.h"
-#include "DNA_object_types.h"
-#include "DNA_screen_types.h"
-
-#include "UI_view2d.h"
-
-#include "ED_view3d.h"
-
-#include "DEG_depsgraph.h"
-#include "DEG_depsgraph_query.h"
-
-#include "gpencil_io.h"
-#include "gpencil_io_export_base.h"
-
-#include "pugixml.hpp"
-
-namespace blender::io::gpencil {
-
-/* Constructor. */
-GpencilExporter::GpencilExporter(const GpencilIOParams *iparams) : GpencilIO(iparams)
-{
-  /* Nothing yet */
-}
-
-}  // namespace blender::io::gpencil
diff --git a/source/blender/io/gpencil/intern/gpencil_io_export_base.h b/source/blender/io/gpencil/intern/gpencil_io_export_base.h
index ac04a8cdf32..19a24a75fd2 100644
--- a/source/blender/io/gpencil/intern/gpencil_io_export_base.h
+++ b/source/blender/io/gpencil/intern/gpencil_io_export_base.h
@@ -28,7 +28,7 @@ namespace blender::io::gpencil {
 class GpencilExporter : public GpencilIO {
 
  public:
-  GpencilExporter(const struct GpencilIOParams *iparams);
+  GpencilExporter(const struct GpencilIOParams *iparams) : GpencilIO(iparams){};
   virtual bool write() = 0;
 
  protected:



More information about the Bf-blender-cvs mailing list