Skip to content

Commit 9bb9f30

Browse files
committed
remove capacity from steam sockets
1 parent 63f571e commit 9bb9f30

3 files changed

Lines changed: 4 additions & 17 deletions

File tree

sources/include/cage-core/networkSteam.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ namespace cage
3030

3131
void write(PointerRange<const char> buffer, uint32 channel, bool reliable);
3232

33-
// suggested capacity for writing, in bytes
34-
sint64 capacity() const;
35-
3633
// update will check for received packets and flush packets pending for send
3734
// update also manages timeouts and resending, therefore it should be called periodically even if you wrote nothing
3835
void update();

sources/libcore/filesystem/redirects.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ namespace cage
6767
const String dst = pathToAbs(redirectsTo);
6868
if (src == dst)
6969
return;
70-
CAGE_LOG(SeverityEnum::Info, "fileRedirects", Stringizer() + "creating file redirect from: " + src + ", to: " + dst);
70+
CAGE_LOG(SeverityEnum::Info, "fileRedirects", Stringizer() + "creating file redirect from: " + src);
71+
CAGE_LOG(SeverityEnum::Note, "fileRedirects", Stringizer() + "creating file redirect to: " + dst); // split into two messages to avoid too long strings
7172
if (find(src) != mapping().end())
7273
CAGE_THROW_ERROR(Exception, "redirect already exists");
7374
if (isPathPrefix(src, dst) || isPathPrefix(dst, src))
@@ -89,7 +90,8 @@ namespace cage
8990
auto it = find(src);
9091
if (it == mapping().end())
9192
return;
92-
CAGE_LOG(SeverityEnum::Info, "fileRedirects", Stringizer() + "removing file redirect from: " + src + ", to: " + it->second);
93+
CAGE_LOG(SeverityEnum::Info, "fileRedirects", Stringizer() + "removing file redirect from: " + src);
94+
CAGE_LOG(SeverityEnum::Note, "fileRedirects", Stringizer() + "removing file redirect to: " + it->second); // split into two messages to avoid too long strings
9395
mapping().erase(it);
9496
}
9597

sources/libcore/network/steam.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -349,12 +349,6 @@ namespace cage
349349
sockets->SendMessages(1, &msg, nullptr);
350350
}
351351

352-
sint64 capacity() const
353-
{
354-
// todo
355-
return 0;
356-
}
357-
358352
void update()
359353
{
360354
sockets->RunCallbacks();
@@ -506,12 +500,6 @@ namespace cage
506500
impl->write(buffer, channel, reliable);
507501
}
508502

509-
sint64 SteamConnection::capacity() const
510-
{
511-
const SteamConnectionImpl *impl = (const SteamConnectionImpl *)this;
512-
return impl->capacity();
513-
}
514-
515503
void SteamConnection::update()
516504
{
517505
SteamConnectionImpl *impl = (SteamConnectionImpl *)this;

0 commit comments

Comments
 (0)