simplified ResourceLoader.

simplified ResourceLoader.

if statements are not necessary.
removed unused field.
private constructor was unused.