Verified Commit fbf693bc authored by Matthew Burket's avatar Matthew Burket
Browse files

Remove useless methods on string socket

parent 37fbc765
......@@ -2,7 +2,7 @@
// Created by Matthew Burket on 4/14/17.
//
#include "StringSocket.h"
#include "string_socket.h"
/**
* Constructor for the StringSocket
......@@ -47,7 +47,7 @@ std::string StringSocket::readSocket(int size) {
}
std::string StringSocket::readLine(int size) {
std::string StringSocket::readLine() {
std::string line;
char *buffer = (char*) malloc(sizeof(char));
read(sockfd, buffer, 1);
......@@ -59,4 +59,4 @@ std::string StringSocket::readLine(int size) {
}
free(buffer);
return line;
}
\ No newline at end of file
}
......@@ -35,8 +35,6 @@ public:
size_t writeSocket(std::string content);
std::string readSocket(int size);
std::string readLine();
std::string readLine(int size);
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment