[gimp] plug-ins: remove deprecated API support from common/mkgen.pl



commit a4637b0d692b97231ef5d467190574b3ce33521b
Author: Michael Natterer <mitch gimp org>
Date:   Tue Sep 3 13:25:25 2019 +0200

    plug-ins: remove deprecated API support from common/mkgen.pl

 plug-ins/common/mkgen.pl | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)
---
diff --git a/plug-ins/common/mkgen.pl b/plug-ins/common/mkgen.pl
index aa428ccf48..1e95284057 100755
--- a/plug-ins/common/mkgen.pl
+++ b/plug-ins/common/mkgen.pl
@@ -187,22 +187,10 @@ EOT
 
     if (exists $plugins{$_}->{cppflags}) {
        my $cppflags = $plugins{$_}->{cppflags};
-       my $oldapiflags = '';
-        if (exists $plugins{$_}->{old_api}) {
-            $oldapiflags = ' -DGIMP_DEPRECATED_REPLACE_NEW_API';
-        }
 
        print MK <<EOT;
 
-${makename}_CPPFLAGS = $cppflags$oldapiflags
-EOT
-    }
-    elsif (exists $plugins{$_}->{old_api}) {
-       my $oldapiflags = '-DGIMP_DEPRECATED_REPLACE_NEW_API';
-
-       print MK <<EOT;
-
-${makename}_CPPFLAGS = \$(AM_CPPFLAGS) $oldapiflags
+${makename}_CPPFLAGS = $cppflags
 EOT
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]