myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1720355 - /myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/ImageRenderer.java
Date Wed, 16 Dec 2015 13:38:09 GMT
Author: lofwyr
Date: Wed Dec 16 13:38:09 2015
New Revision: 1720355

URL: http://svn.apache.org/viewvc?rev=1720355&view=rev
Log:
TOBAGO-1521: tc:image should support the Font Awesome icon library
- cleanup

Modified:
    myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/ImageRenderer.java

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/ImageRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/ImageRenderer.java?rev=1720355&r1=1720354&r2=1720355&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/ImageRenderer.java
(original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/ImageRenderer.java
Wed Dec 16 13:38:09 2015
@@ -100,16 +100,6 @@ public class ImageRenderer extends Rende
     }
   }
 
-  private String createSrc(final String src, final String ext) {
-    final int dot = src.lastIndexOf('.');
-    if (dot == -1) {
-      LOG.warn("Image src without extension: '" + src + "'");
-      return src;
-    } else {
-      return src.substring(0, dot) + ext + src.substring(dot);
-    }
-  }
-
   private boolean isDisabled(final AbstractUIImage graphic) {
     return graphic.isDisabled()
         || (graphic.getParent() instanceof UICommand && ((UICommand) graphic.getParent()).isDisabled());



Mime
View raw message