Skip to content

Commit bcdab6f

Browse files
committed
remove texture_path, sound_path, egg_path
1 parent 4c68734 commit bcdab6f

25 files changed

+33
-119
lines changed

panda/src/audio/audioManager.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,7 @@ get_dls_pathname() {
287287
Filename dls_filename = audio_dls_file;
288288
if (!dls_filename.empty()) {
289289
VirtualFileSystem *vfs = VirtualFileSystem::get_global_ptr();
290-
vfs->resolve_filename(dls_filename, get_sound_path()) ||
291-
vfs->resolve_filename(dls_filename, get_model_path());
290+
vfs->resolve_filename(dls_filename, get_model_path());
292291

293292
return dls_filename;
294293
}

panda/src/audiotraits/fmodAudioManager.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,7 @@ get_sound(const string &file_name, bool positional, int) {
410410
Filename path = file_name;
411411

412412
VirtualFileSystem *vfs = VirtualFileSystem::get_global_ptr();
413-
vfs->resolve_filename(path, get_sound_path()) ||
414-
vfs->resolve_filename(path, get_model_path());
413+
vfs->resolve_filename(path, get_model_path());
415414

416415
// Build a new AudioSound from the audio data.
417416
PT(AudioSound) audioSound = 0;

panda/src/audiotraits/globalMilesManager.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,7 @@ open_api() {
318318
Filename dls_pathname = AudioManager::get_dls_pathname();
319319

320320
VirtualFileSystem *vfs = VirtualFileSystem::get_global_ptr();
321-
vfs->resolve_filename(dls_pathname, get_sound_path()) ||
322-
vfs->resolve_filename(dls_pathname, get_model_path());
321+
vfs->resolve_filename(dls_pathname, get_model_path());
323322

324323
_dls_data.clear();
325324
PT(VirtualFile) file = vfs->get_file(dls_pathname);

panda/src/audiotraits/milesAudioManager.cxx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ get_sound(const string &file_name, bool, int) {
147147
Filename path = file_name;
148148

149149
VirtualFileSystem *vfs = VirtualFileSystem::get_global_ptr();
150-
vfs->resolve_filename(path, get_sound_path()) ||
151-
vfs->resolve_filename(path, get_model_path());
150+
vfs->resolve_filename(path, get_model_path());
152151
audio_debug(" resolved file_name is '"<<path<<"'");
153152

154153
PT(SoundData) sd;
@@ -244,8 +243,7 @@ uncache_sound(const string &file_name) {
244243
Filename path = file_name;
245244

246245
VirtualFileSystem *vfs = VirtualFileSystem::get_global_ptr();
247-
vfs->resolve_filename(path, get_sound_path()) ||
248-
vfs->resolve_filename(path, get_model_path());
246+
vfs->resolve_filename(path, get_model_path());
249247

250248
audio_debug(" path=\""<<path<<"\"");
251249
SoundMap::iterator i = _sounds.find(path);

panda/src/audiotraits/openalAudioManager.cxx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,7 @@ get_sound(const string &file_name, bool positional, int mode) {
386386

387387
Filename path = file_name;
388388
VirtualFileSystem *vfs = VirtualFileSystem::get_global_ptr();
389-
vfs->resolve_filename(path, get_sound_path()) ||
390-
vfs->resolve_filename(path, get_model_path());
389+
vfs->resolve_filename(path, get_model_path());
391390

392391
if (path.empty()) {
393392
audio_error("get_sound - invalid filename");
@@ -417,8 +416,7 @@ uncache_sound(const string& file_name) {
417416
Filename path = file_name;
418417

419418
VirtualFileSystem *vfs = VirtualFileSystem::get_global_ptr();
420-
vfs->resolve_filename(path, get_sound_path()) ||
421-
vfs->resolve_filename(path, get_model_path());
419+
vfs->resolve_filename(path, get_model_path());
422420

423421
SampleCache::iterator sci = _sample_cache.find(path);
424422
if (sci != _sample_cache.end()) {

panda/src/downloader/socketStream.cxx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -232,20 +232,4 @@ ISocketStream::
232232
nassertv(_channel == NULL);
233233
}
234234

235-
236-
////////////////////////////////////////////////////////////////////
237-
// Function: ISocketStream::set_hold_ptr
238-
// Access: Published
239-
// Description: Associates a reference-counting pointer with the
240-
// stream. The stream does nothing with the pointer
241-
// other than hold its reference count for its own
242-
// lifetime (or until set_hold_ptr() is called again).
243-
//
244-
// At the moment, this is used only by VirtualFileHTTP.
245-
////////////////////////////////////////////////////////////////////
246-
void ISocketStream::
247-
set_hold_ptr(const TypedReferenceCount *ptr) {
248-
_hold_ptr = ptr;
249-
}
250-
251235
#endif // HAVE_OPENSSL

panda/src/downloader/socketStream.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,10 @@ class EXPCL_PANDAEXPRESS ISocketStream : public istream, public SSReader {
138138
virtual void close() = 0;
139139
virtual ReadState get_read_state() = 0;
140140

141-
void set_hold_ptr(const TypedReferenceCount *ptr);
142-
143141
protected:
144142
HTTPChannel *_channel;
145143

146144
private:
147-
CPT(TypedReferenceCount) _hold_ptr;
148-
149145
friend class HTTPChannel;
150146
};
151147

panda/src/egg/config_egg.cxx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ ConfigureFn(config_egg) {
6464
init_libegg();
6565
}
6666

67-
ConfigVariableSearchPath egg_path
68-
("egg-path",
69-
PRC_DESC("The search path along which only egg files are searched. Generally, you "
70-
"should use model-path instead of egg-path."));
71-
7267
ConfigVariableBool egg_support_old_anims
7368
("egg-support-old-anims", true,
7469
PRC_DESC("Set this true to support loading of old character animation files, which "

panda/src/egg/config_egg.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
NotifyCategoryDecl(egg, EXPCL_PANDAEGG, EXPTP_PANDAEGG);
2727

28-
extern ConfigVariableSearchPath egg_path;
2928
extern ConfigVariableBool egg_support_old_anims;
3029

3130
extern EXPCL_PANDAEGG ConfigVariableBool egg_mesh;

panda/src/egg/eggData.cxx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ TypeHandle EggData::_type_handle;
3737
// Function: EggData::resolve_egg_filename
3838
// Access: Public, Static
3939
// Description: Looks for the indicated filename, first along the
40-
// indicated searchpath, and then along the egg_path and
41-
// finally along the model_path. If found, updates the
42-
// filename to the full path and returns true;
43-
// otherwise, returns false.
40+
// indicated searchpath, and then along the model_path.
41+
// If found, updates the filename to the full path and
42+
// returns true; otherwise, returns false.
4443
////////////////////////////////////////////////////////////////////
4544
bool EggData::
4645
resolve_egg_filename(Filename &egg_filename, const DSearchPath &searchpath) {
@@ -51,7 +50,6 @@ resolve_egg_filename(Filename &egg_filename, const DSearchPath &searchpath) {
5150
}
5251

5352
vfs->resolve_filename(egg_filename, searchpath, "egg") ||
54-
vfs->resolve_filename(egg_filename, egg_path, "egg") ||
5553
vfs->resolve_filename(egg_filename, get_model_path(), "egg");
5654

5755
return vfs->exists(egg_filename);

0 commit comments

Comments
 (0)