11/*
2- * Copyright (c) 2009-2021 jMonkeyEngine
2+ * Copyright (c) 2009-2024 jMonkeyEngine
33 * All rights reserved.
44 *
55 * Redistribution and use in source and binary forms, with or without
3131 */
3232package com .jme3 .scene .plugins .gltf ;
3333
34+ import com .google .gson .JsonArray ;
35+ import com .google .gson .JsonElement ;
36+ import com .google .gson .JsonObject ;
3437import com .jme3 .asset .AssetInfo ;
3538import com .jme3 .asset .AssetLoadException ;
3639import com .jme3 .math .*;
3740import com .jme3 .scene .*;
38- import com .jme3 .plugins .json .Json ;
39- import com .jme3 .plugins .json .JsonParser ;
40- import com .jme3 .plugins .json .JsonArray ;
41- import com .jme3 .plugins .json .JsonObject ;
42- import com .jme3 .plugins .json .JsonElement ;
4341import com .jme3 .texture .Texture ;
4442import com .jme3 .util .*;
4543import java .io .*;
@@ -61,18 +59,7 @@ public class GltfUtils {
6159 private GltfUtils () {
6260 }
6361
64-
65- /**
66- * Parse a json input stream and returns a {@link JsonObject}
67- * @param stream the stream to parse
68- * @return the JsonObject
69- */
70- public static JsonObject parse (InputStream stream ) {
71- JsonParser parser = Json .create ();
72- return parser .parse (stream );
73- }
74-
75- public static Mesh .Mode getMeshMode (Integer mode ) {
62+ public static Mesh .Mode getMeshMode (Integer mode ) {
7663 if (mode == null ) {
7764 return Mesh .Mode .Triangles ;
7865 }
0 commit comments