package se.alexanderblom.imageloader;

import android.content.ContentResolver;
import android.content.Context;

public class URLUtil {
    public static String resourceUrl(Context c, int resId) {
        return createUrl(ContentResolver.SCHEME_ANDROID_RESOURCE, c.getPackageName(), String.valueOf(resId));
    }

    public static String assetUrl(String path) {
        return createUrl(ContentResolver.SCHEME_FILE, "/android_asset", path);
    }

    public static String fileUrl(String path) {
        return createUrl(ContentResolver.SCHEME_FILE, null, path);
    }

    private static String createUrl(String scheme, String authority, String path) {
        if (authority != null) {
            return scheme + "://" + authority + "/" + path;
        } else {
            return scheme + "://" + path;
        }
    }

    private URLUtil() {}
}

@@ -445,130 +445,8 @@
  %7D%0A%0A
-    public static String fileUrl(String path) %7B%0A        return createUrl(ContentResolver.SCHEME_FILE, null, path);%0A    %7D%0A%0A
     
@@ -529,45 +529,8 @@
 ) %7B%0A
-        if (authority != null) %7B%0A    
     
@@ -585,77 +585,8 @@
 th;%0A
-        %7D else %7B%0A            return scheme + %22://%22 + path;%0A        %7D%0A
     

Remove unnecessary utility method