Skip to content

Commit 7c4cac8

Browse files
committed
Remove core changes
1 parent 0ce5b62 commit 7c4cac8

5 files changed

Lines changed: 4 additions & 12 deletions

File tree

libs/openFrameworks/3d/ofMesh.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ template<class V, class N, class C, class T>
814814
void ofMesh_<V,N,C,T>::setVertex(ofIndexType index, const V& v){
815815
vertices[index] = v;
816816
bVertsChanged = true;
817-
if(usingIndices()) bIndicesChanged = true;
817+
bIndicesChanged = true;
818818
bFacesDirty = true;
819819
}
820820

@@ -879,7 +879,6 @@ void ofMesh_<V,N,C,T>::setupIndicesAuto(){
879879
template<class V, class N, class C, class T>
880880
void ofMesh_<V,N,C,T>::clearVertices(){
881881
vertices.clear();
882-
if(usingIndices()) bIndicesChanged = true;
883882
bVertsChanged=true;
884883
}
885884

libs/openFrameworks/app/ofAppRunner.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,7 @@ void ofExitCallback(){
239239

240240

241241
// finish every library and subsystem
242-
#if !defined(NO_URL_LOADER)
243242
ofURLFileLoaderShutdown();
244-
#endif
245243

246244
#ifndef TARGET_NO_SOUND
247245
//------------------------

libs/openFrameworks/graphics/ofImage.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,9 @@ static bool loadImage(ofPixels_<PixelType> & pix, const of::filesystem::path & _
224224
std::string scheme(uri.scheme.first, uri.scheme.afterLast);
225225
uriFreeUriMembersA(&uri);
226226

227-
#if !defined(NO_URL_LOADER)
228227
if(scheme == "http" || scheme == "https"){
229228
return ofLoadImage(pix, ofLoadURL(ofPathToString(_fileName)).data);
230229
}
231-
#endif
232230

233231

234232
bool bLoaded = false;

libs/openFrameworks/graphics/ofPixels.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ static size_t channelsFromPixelFormat(ofPixelFormat format){
168168
return 2;
169169
break;
170170
default:
171-
ofLogError("ofPixels") << "format doesn't support channels";
171+
ofLog(OF_LOG_ERROR,"ofPixels: format doesn't support channels");
172172
return 1;
173173
}
174174
}
@@ -185,7 +185,7 @@ static ofPixelFormat ofPixelFormatFromImageType(ofImageType type){
185185
return OF_PIXELS_RGBA;
186186
break;
187187
default:
188-
ofLogError("ofPixels") << "image type not supported";
188+
ofLog(OF_LOG_ERROR,"ofPixels: image type not supported");
189189
return OF_PIXELS_UNKNOWN;
190190
}
191191
}
@@ -207,7 +207,7 @@ static ofImageType ofImageTypeFromPixelFormat(ofPixelFormat pixelFormat){
207207
case OF_PIXELS_UNKNOWN:
208208
return OF_IMAGE_UNDEFINED;
209209
default:
210-
ofLogError("ofPixels") << "image type not supported";
210+
ofLog(OF_LOG_ERROR,"ofPixels: image type not supported");
211211
return OF_IMAGE_UNDEFINED;
212212
}
213213
}

libs/openFrameworks/utils/ofURLFileLoader.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include "ofFileUtils.h"
66
#include <map>
77

8-
#if !defined(NO_URL_LOADER)
98
class ofHttpResponse;
109

1110
/// \class ofHttpRequest
@@ -259,5 +258,3 @@ class ofBaseURLFileLoader {
259258
/// \return unique id of the active HTTP request
260259
virtual int handleRequestAsync(const ofHttpRequest & request) = 0;
261260
};
262-
263-
#endif

0 commit comments

Comments
 (0)