소스 검색

remove non-germane comment

svn:r6640
Nick Mathewson 19 년 전
부모
커밋
73ada60d64
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      src/common/util.c

+ 0 - 4
src/common/util.c

@@ -198,10 +198,6 @@ _tor_memdup(const void *mem, size_t len DMALLOC_PARAMS)
   char *dup;
   tor_assert(mem);
   dup = _tor_malloc(len DMALLOC_FN_ARGS);
-  /* Performance note: Ordinarily we prefer strlcpy to strncpy.  But
-   * this function gets called a whole lot, and platform strncpy is
-   * much faster than strlcpy when strlen(s) is much longer than n.
-   */
   memcpy(dup, mem, len);
   return dup;
 }